package com.msb.crm.dao;

import com.msb.crm.base.BaseMapper;
import com.msb.crm.model.TreeModel;
import com.msb.crm.vo.Module;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModuleMapper extends BaseMapper<Module,Integer> {

    List<TreeModel> queryAllModules();

    List<Module> queryModules();

    Module queryModuleByGradeAndModuleName(@Param("grade") Integer grade, @Param("moduleName") String moduleName);


    Module queryModuleByGradeAndUrl(@Param("grade") Integer grade,@Param("url")String url);

    Module queryModuleByOptvalue(String optValue);

    Integer countSubModuleByParentId(Integer mid);
}